package com.qfjy.service.impl.example5;

import lombok.extern.slf4j.Slf4j;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Service;

/**
 * @ClassName UserServiceImpl
 * @Description TODO  用户管理 业务逻辑队列
 * @Author guoweixin
 * @Date 2022/4/2
 * @Version 1.0
 */
@Service
@Slf4j
public class UserServiceImpl {


    /**
     * 用户 X时间内，未登录 ，短信/邮件提醒
     */
    @RabbitListener(queues = {"delayed.queue.user.register"})
    public void sendEamil(String uname){

        if("如果你登录"==null){

        }else {

            log.info("用户发送邮件/短信成功--》" + uname);
        }
    }

}
